// 导入服务
const express = require('express')

const app = express()

app.get('*', (req, res) => {
    const html = `
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>服务端渲染 SSR</title>
    </head>
    <body>
        <div id="root">
            hello SSR 8848
        </div>
    </body>
    </html>
    `
    res.send(html)
})

app.listen(8848, () => {
    console.log('serve start 8848');
})